<%@ page import="registerallocator.Periodo" %>



<div class="fieldcontain ${hasErrors(bean: periodoInstance, field: 'disciplinas', 'error')} ">
	<label for="disciplinas">
		<g:message code="periodo.disciplinas.label" default="Disciplinas" />
		
	</label>
	<g:select name="disciplinas" from="${registerallocator.Disciplina.list()}" multiple="multiple" optionKey="id" size="5" value="${periodoInstance?.disciplinas*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: periodoInstance, field: 'grade', 'error')} required">
	<label for="grade">
		<g:message code="periodo.grade.label" default="Grade" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="grade" name="grade.id" from="${registerallocator.Grade.list()}" optionKey="id" required="" value="${periodoInstance?.grade?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: periodoInstance, field: 'horarioAluno', 'error')} required">
	<label for="horarioAluno">
		<g:message code="periodo.horarioAluno.label" default="Horario Aluno" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="horarioAluno" name="horarioAluno.id" from="${registerallocator.HorarioAluno.list()}" optionKey="id" required="" value="${periodoInstance?.horarioAluno?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: periodoInstance, field: 'horarioProfessor', 'error')} required">
	<label for="horarioProfessor">
		<g:message code="periodo.horarioProfessor.label" default="Horario Professor" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="horarioProfessor" name="horarioProfessor.id" from="${registerallocator.HorarioProfessor.list()}" optionKey="id" required="" value="${periodoInstance?.horarioProfessor?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: periodoInstance, field: 'horarioSala', 'error')} required">
	<label for="horarioSala">
		<g:message code="periodo.horarioSala.label" default="Horario Sala" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="horarioSala" name="horarioSala.id" from="${registerallocator.HorarioSala.list()}" optionKey="id" required="" value="${periodoInstance?.horarioSala?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: periodoInstance, field: 'horarioTurma', 'error')} required">
	<label for="horarioTurma">
		<g:message code="periodo.horarioTurma.label" default="Horario Turma" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="horarioTurma" name="horarioTurma.id" from="${registerallocator.HorarioTurma.list()}" optionKey="id" required="" value="${periodoInstance?.horarioTurma?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: periodoInstance, field: 'numero', 'error')} required">
	<label for="numero">
		<g:message code="periodo.numero.label" default="Numero" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="numero" required="" value="${fieldValue(bean: periodoInstance, field: 'numero')}"/>
</div>

